<?php
include_once('l10n.php');
class Actions {
	function action($post_vars) {
		$return_str = "";
		switch ($post_vars['action']) {
			default:
			case "Soon":
				$return_str .= $this->soon ($post_vars);
				//$return_str .= $this->View ($post_vars);
				break;				
		}
		return $return_str;
	}
	
	function soon ($post_vars=NULL, $error=NULL) {
		global $l10n;

		require_once("ui/init.php");
		$smarty = new _Smarty();
		$smarty->assign ($post_vars);
		
		if ($error != NULL) 
			$smarty->assign ("error", $l10n->get($error));
		else
			$smarty->assign ("error", $l10n->get("pek yakinda"));
		return $smarty->fetch ('soon.html');
	}	

	
}
?>